<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('diypage/index')}">自定义单页</a></div>
<div class="m10">
<div class="table-head fn-clear">
    <div class="fn-l"><a href="{url('diypage/index')}" class="button"> <i class="iconfont">&#xf0ca;</i> 列表</a><strong>自定义单页</strong>  </div>
    <div class="fn-r"><a href="{url('diypage/edit')}" class="button button-blue"> <i class="iconfont" title="自定义单页">&#xf055;</i> 自定义单页</a></div>
</div>
<table class="table">
<thead><tr><th class="fn-tac w100">链接标签</th><th class="fn-tac w200">所属站点</th><th class="fn-tal">页面名称</th><th class="w120 fn-tac">最后更新时间</th><th class="fn-tac w140">操作</th></tr></thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac"><input class="input w80 h20 p0 fn-tac" type="text" value="{page:{$vo['id']}}" /></td>
    <td class="fn-tac">{$vo['website_name']}</td>
    <td class="fn-tal"><a title="编辑" href="{url('diypage/edit',array(id=>$vo['id']))}">{$vo['title']}</a></td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac tip">
    <a title="预览" href="{url('default/page',array(uid=>$vo['id']))}" target="_blank">预览</a> / 
    <a title="编辑" href="{url('diypage/edit',array(id=>$vo['id']))}">编辑</a> / 
    <a class="del" title="删除" href="###" url="{url('diypage/index',array(id=>$vo['id'],act=>del))}">删除</a></td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','dialog',function(){
  $('.del').click(function(){$(this).del();});
})
</script>